﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Functions.aspx.cs" Inherits="EM.admin.Menu.Functions" %>

<%@ Register Src="~/Common/PageName.ascx" TagName="PageName" TagPrefix="uc1" %>
<%@ Register Src="~/Common/SectionName.ascx" TagName="SectionName" TagPrefix="uc3" %>
<%@ Register Src="~/Common/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Src="~/Common/Footer.ascx" TagName="Footer" TagPrefix="uc4" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link  runat="server" id="linkCss" rel="stylesheet" href="~/css/master.css" type="text/css"/>
    <link  runat="server" id="linkcssbuttons" rel="stylesheet" href="~/css/buttons.css" type="text/css"/>
</head>

<body >
    <form id="form1" runat="server">
        <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td class="TdMainContent" valign="top">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="TdPageName" colspan="2"><uc1:PageName id="ucPageName" PAGEID="30" runat="server"></uc1:PageName></td>
                        </tr>
                        <tr>
                            <td id="TdMainRight" valign="top">
                                <div id="ContentRight">
                                    <table class="Repeater_Table" width="700" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td class="Repeater_Table_Header" Width="150"><asp:Label ID="lblFunctionCode" runat="server" >Fonksiyon Kodu</asp:Label></td>
                                            <td class="Repeater_Table_Header" Width="200"><asp:Label ID="lblFunctionName" runat="server" >Fonksiyon Adı</asp:Label></td>
                                            <td class="Repeater_Table_Header" Width="200"><asp:Label ID="lblDescription" runat="server" >Açıklama</asp:Label></td>
                                            <td class="Repeater_Table_Header" style="width:100px;" align="center">
                                                <asp:Label ID="lblActions" runat="server" >İşlemler</asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="Repeater_Table_ItemLeft">
                                                <asp:TextBox ID="txtFunctionCode" runat="server" Width="150" CssClass="EditinputRq"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvFunctionCode" ValidationGroup="vgf1" runat="server" ControlToValidate="txtFunctionCode" Display="None" ErrorMessage="Lütfen fonksiyon kodu giriniz" ></asp:RequiredFieldValidator>
                                            </td>    
                                            <td class="Repeater_Table_Item">
                                                <asp:TextBox ID="txtFunctionName" runat="server" Width="200" CssClass="EditinputRq"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvFunctionName" ValidationGroup="vgf1" runat="server" ControlToValidate="txtFunctionName" Display="None" ErrorMessage="Lütfen fonksiyon adı giriniz"></asp:RequiredFieldValidator>
                                            </td> 
                                            <td class="Repeater_Table_Item"><asp:TextBox ID="txtDescription" runat="server" Width="200" CssClass="Editinput"></asp:TextBox></td>
                                            <td  class="Repeater_Table_Item" align="center" style="width:100px;">
                                                <asp:ValidationSummary ID="vs" runat="server" DisplayMode="BulletList"  ValidationGroup="vgf1" Width="0px" ShowSummary="false" ShowMessageBox="true" />
                                                <asp:LinkButton ID="btnAdd" runat="server"  ValidationGroup="vgf1" Text="Add" CommandName="Add" OnClick="btnAdd_Click" ></asp:LinkButton>
                                            </td>
                                        </tr>
                                        <asp:Repeater ID="rptFunctions" runat="server" OnItemDataBound="rptFunctions_ItemdDataBound" OnItemCommand="rptFunctions_ItemCommand" >
                                            <ItemTemplate>
                                                <tr>
                                                    <td class="Repeater_Table_ItemLeft">
                                                        <asp:TextBox ID="txtFunctionCode1" runat="server" Width="150" Text='<%#Eval("FUNCTIONCODE") %>' CssClass="EditinputRq"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvFunctionCode1" runat="server" ControlToValidate="txtFunctionCode1" Display="None" ErrorMessage="Lütfen fonksiyon kodu giriniz"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td class="Repeater_Table_Item">
                                                        <asp:TextBox ID="txtFunctionName1" runat="server" Width="200" Text='<%#Eval("FUNCTIONNAME") %>' CssClass="EditinputRq"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvFunctionName1" runat="server" ControlToValidate="txtFunctionName1" Display="None" ErrorMessage="Lütfen fonksiyon adı giriniz"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td class="Repeater_Table_Item">
                                                        <asp:TextBox ID="txtDescription1" runat="server" Width="200" Text='<%#Eval("FUNCTIONDESC") %>' CssClass="Editinput"></asp:TextBox>
                                                    </td>
                                                    <td  class="Repeater_Table_Item" align="center" nowrap style="width:100px;">
                                                        <asp:ValidationSummary ID="vs" runat="server" DisplayMode="BulletList"  Width="0px" ShowSummary="false" ShowMessageBox="true" />
                                                        <asp:LinkButton ID="btnUpdate" runat="server"  CommandName="Update" CommandArgument='<%#Eval("PAGEFUNCTIONID") %>' >Güncelle</asp:LinkButton>
                                                        <asp:LinkButton ID="btnDelete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("PAGEFUNCTIONID") %>' CausesValidation="false">Sil</asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <AlternatingItemTemplate>
                                                <tr>
                                                    <td class="Repeater_Table_ItemLeft_Alternating">
                                                        <asp:TextBox ID="txtFunctionCode1" runat="server" Width="150" Text='<%#Eval("FUNCTIONCODE") %>' CssClass="EditinputRq"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvFunctionCode1" runat="server" ControlToValidate="txtFunctionCode1" Display="None" ErrorMessage="Lütfen fonksiyon kodu giriniz"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td class="Repeater_Table_Item_Alternating">
                                                        <asp:TextBox ID="txtFunctionName1" runat="server" Width="200" Text='<%#Eval("FUNCTIONNAME") %>' CssClass="EditinputRq"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvFunctionName1" runat="server" ControlToValidate="txtFunctionName1" Display="None" ErrorMessage="Lütfen fonksiyon adı giriniz"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td class="Repeater_Table_Item_Alternating">
                                                        <asp:TextBox ID="txtDescription1" runat="server" Width="200" Text='<%#Eval("FUNCTIONDESC") %>' CssClass="Editinput"></asp:TextBox>
                                                    </td>
                                                    <td  class="Repeater_Table_Item_Alternating" align="center" nowrap style="width:100px;">
                                                        <asp:ValidationSummary ID="vs" runat="server" DisplayMode="BulletList"  Width="0px" ShowSummary="false" ShowMessageBox="true" />
                                                        <asp:LinkButton ID="btnUpdate" runat="server"  CommandName="Update" CommandArgument='<%#Eval("PAGEFUNCTIONID") %>' >Güncelle</asp:LinkButton>
                                                        <asp:LinkButton ID="btnDelete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("PAGEFUNCTIONID") %>' CausesValidation="false">Sil</asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </AlternatingItemTemplate>
                                        </asp:Repeater>
                                    </table>
                                    <br />
                                    <div style="width:700px;" >
                                        <a style="float:right;"  class="btn_left xp_cancel" href='javascript:window.close();'  >
                                            <strong class="btn_rigth_xp xp">Kapat</strong>
                                        </a>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
